package org.example.DesignPatterns.Builder;

/**
 * @description:
 * @author: farprt
 * @create: 2022-09-18 12:32
 **/
public class Client {

    public static void main(String[] args) {
        Director director=new Director(new HouseBuilder());
        System.out.println(director.direct());

        director.setBuilder(new ApartmentBuilder());
        System.out.println(director.direct());
    }
}